package com.yy.train.ticket.train.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yy.train.ticket.goout.TrainSeat;
import com.yy.train.ticket.into.page.LinePage;
import com.yy.train.ticket.train.entity.TtTrainSeatEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yy.train.ticket.utils.R;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 座位
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2023-09-25 10:38:44
 */
@Mapper
public interface TtTrainSeatDao extends BaseMapper<TtTrainSeatEntity> {

    List<TrainSeat> trainSeatlist(Long trainId);

    IPage<TrainSeat> trainSeatPage(Page<LinePage> page,@Param("seatPage")  LinePage seatPage);
}
